package se.sll.service.catalogue.common.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

/**
 * @author Jiri Uosukainen
 */
@Data
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)

public class ListOfStrings implements Serializable{

    static final long serialVersionUID = 1L;
    
    private List<String> values = new ArrayList<String>();

    public ListOfStrings() {
    }

    public ListOfStrings(List<String> values) {
        setValues(values);
    }
    
    public boolean isEmpty(){
        return values == null || values.isEmpty();
    }
}
